Skip to content

feat(IN-181): 시청자 분포 영역 제작#99

Merged
juuhye merged 4 commits into
JECT-Study:developfrom
juuhye:feat/IN-181
May 11, 2026
Merged

feat(IN-181): 시청자 분포 영역 제작#99
juuhye merged 4 commits into
JECT-Study:developfrom
juuhye:feat/IN-181

Conversation

@juuhye

@juuhye juuhye commented May 2, 2026

Copy link
Copy Markdown
Collaborator

📌 작업 개요

feat(channel): 시청자 분포 영역 제작

🗂 작업 유형

해당하는 항목에 x를 채워 주세요.

  • 기능 추가 (feat)
  • 버그 수정 (fix)
  • 리팩토링 (refactor)
  • 스타일 / UI 수정 (style)
  • 성능 개선 (perf)
  • 테스트 (test)
  • 기타 (chore, docs 등)

✏️ 작업 내용

src/entities/channel/subscriberDistribution/ui/DistributionChart.tsx -> 연령, 국가별 막대차트 영역
src/entities/channel/subscriberDistribution/ui/GenderChart.tsx -> 성별 파이 차트
src/entities/channel/subscriberDistribution/ui/SubscriberChart.tsx -> 기존/ 신규 구독자 파이 차트

src/features/channel/contentType/ui/ContentType.tsx -> 기존 숏/롱 filter -> 범용 사용으로 수정

src/features/channel/subscriberDistribution/api/DistributionChartApi.ts
src/features/channel/subscriberDistribution/api/subscriberChartApi.ts
src/features/channel/subscriberDistribution/model/useDistributionChart.ts
src/features/channel/subscriberDistribution/model/useSubscriberChart.ts -> api, React Query

src/shared/ui/chart/barChart/BaseBarChart.tsx -> bar 차트 공통 UI

✅ 셀프 체크리스트

머지 전 직접 확인해 주세요.

  • 로컬에서 정상 동작 확인
  • 불필요한 콘솔 로그, 주석, 디버그 코드 제거
  • 타입 에러 없음

💬 리뷰어에게

#98 머지 후 확인 부탁 드립니다..

@vercel

vercel Bot commented May 2, 2026

Copy link
Copy Markdown

@juuhye is attempting to deploy a commit to the kimyunhyeong's projects Team on Vercel.

A member of the Team first needs to authorize it.

@juuhye juuhye changed the title feat(channel): 시청자 분포 영역 제작 feat(IN-181): 시청자 분포 영역 제작 May 2, 2026
@kimYunHyeong

Copy link
Copy Markdown
Collaborator

코드 확인했습니다. IN-180이후 작업분이 반영된 상태에서 개발하신 것 같아 IN-181관련 코드만 확인했습니다. 재사용 컴포넌트로 인해 이전 작업이 선행되어야 한다면, 컴포넌트 단위(롱폼/숏폼 평균 참여율 영역, 시청자 분포 영역 등)로 작업 범위를 나누는 방법도 좋지만, 페이지 내에서 공통으로 사용되는 요소(차트 등)를 먼저 개발한 뒤 이를 기반으로 작업을 진행해주시면 더욱 좋을 것 같습니다.

그렇게 해주시면 이전 브랜치가 반영되지 않은 상태에서도 파일을 분리해서 검토하는 번거로움 없이 리뷰를 진행할 수 있어, 리뷰 효율이 크게 높아질 것 같습니다.

@juuhye

juuhye commented May 7, 2026

Copy link
Copy Markdown
Collaborator Author

네넵! 제가 이전 작업을 할때 브랜치 분리에 대해 이해가 잘 안되었던 거 같습니다
앞으로의 작업에서는 공통요소 선 작업 후 진행하겠습니다! 감사합니다

src/entities/channel/subscriberDistribution/ui/DistributionChart.tsx -> 연령, 국가별 막대차트 영역
src/entities/channel/subscriberDistribution/ui/GenderChart.tsx -> 성별 파이 차트
src/entities/channel/subscriberDistribution/ui/SubscriberChart.tsx -> 기존/ 신규 구독자 파이 차트

src/features/channel/contentType/ui/ContentType.tsx -> 기존 숏/롱 filter -> 범용 사용으로 수정

src/features/channel/subscriberDistribution/api/DistributionChartApi.ts
src/features/channel/subscriberDistribution/api/subscriberChartApi.ts
src/features/channel/subscriberDistribution/model/useDistributionChart.ts
src/features/channel/subscriberDistribution/model/useSubscriberChart.ts -> api, React Query

src/shared/ui/chart/barChart/BaseBarChart.tsx -> bar 차트 공통 UI
@@ -0,0 +1,30 @@
import { http, HttpResponse } from 'msw'
import { mockSubscriberDistribution } from '@/entities/channel/subscriberDistribution/mock/mockSubscriberDistribution'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mock에 index로 export 하고 있어서 경로 수정하면 좋을 것 같아요

@@ -0,0 +1,15 @@
import { http, HttpResponse } from 'msw'
import { mockSubscriber } from '@/entities/channel/subscriberDistribution/mock/mockSubscriberDistribution'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

여기도 경로 수정되면 좋을 것 같아요

{data.map((item, idx) => (
<div
className='flex h-24 items-center justify-end text-noto-body-xs-normal text-text-and-icon-default'
key={idx}>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 key 좀 더 유니크하게 수정해주세요

@juuhye juuhye May 9, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

위에 작성해주신 모든 수정 사항 반영하였습니다! 감사합니다

@juuhye juuhye requested a review from shunn2 May 9, 2026 15:56
@juuhye juuhye merged commit b984273 into JECT-Study:develop May 11, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants